package com.advertise.dao;

import java.io.Serializable;

import java.util.List;

public interface BaseDAO_IFace<PO,ID extends Serializable> {
	public List<PO> getAll();		// get all the records for this po object in the table
	
	public boolean update(PO po);	 //modify the record use new object
	
	public boolean save(PO po); 	//create a new object 
	
	public boolean deletebyID(ID id);	//delete the object by id
	
	public boolean deleteByCollections(List<PO> collectionData); 	//delete the data that exists in the collectionData
	
	public PO findByID(ID id);	/****** find the data by the record id  *****/
	
	
}
